package hu.stud.uszeged.inf.prf.prftrac.session;

import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Begin;
import org.jboss.seam.annotations.web.RequestParameter;
import org.jboss.seam.framework.EntityHome;

import hu.stud.uszeged.inf.prf.prftrac.entity.User;

@Name("userHome")
public class UserHome extends EntityHome<User>
{
    /**
	 * 
	 */
	private static final long serialVersionUID = -2908693752903461429L;
	
	@RequestParameter Long userId;

    @Override
    public Object getId()
    {
        if (userId == null)
        {
            return super.getId();
        }
        else
        {
            return userId;
        }
    }

    @Override @Begin(join=true)
    public void create() {
    	super.create();
    }
}
